<?php
/* @var $this TradeController */
/* @var $data Trade */
?>
<tr>
	<td class="pro tl">
		<?php echo CHtml::checkBox('id[]','',array('class'=>'chk f_l','onclick'=>'CheckList("ids[]","id[]")','value'=>$data->ztr_id))?>
		<div class="c_img c_img50">
			<?php echo CHtml::link(Tool::Thumb($data->ztr_pic,50,50,$data->ztr_title),array('/home/trade/detail','id'=>$data->ztr_id)) ?>
		</div>
		<p class="title_pro line_18">
			<?php echo CHtml::link(mb_substr($data->ztr_title,0,30,'utf8'),array('/home/trade/detail','id'=>$data->ztr_id),array('class'=>'c_06c'))?>
		</p>
	</td>
	<td width="12%"><?php echo $data->ztr_nums?></td>
	<td width="10%"><strong class="ff_yh fs_14 c_f60">&yen;<?php echo $data->ztr_price?></strong></td>
	<td width="10%"><?php  echo ($data->zm_id==0)?"商城":$data->member->zm_name ?></td>
	<td width="12%">
		<?php if($data->ztr_status==1){
					echo "等待审核";
		}elseif($data->ztr_status==2){
			if($data->ztr_exp_time>time()){
				echo "正在进行中";
			}else{
				echo "已过期";
			}
		}?>
	</td>
	<td width="12%"><?php echo date('Y-m-d H:i',$data->inputtime)?></td>
	<td class="operate" width="8%">
			<?php echo CHtml::link(Yii::t('glo','Update'),array('update','id'=>$data->ztr_id),array('class'=>'c_06c'))?><br>
			<?php echo CHtml::link(Yii::t('glo','Delete'),'javascript:',array('class'=>'c_06c','onclick'=>'return art_del_confirm("/manage/trade/delete/id/'.$data->ztr_id.'","你确定要删除这条信息吗？")'))?>  
	</td>
</tr>